<template>
  <div id="app" v-if="bol">
    <!-- <button @click="btnClick"></button> -->
    <!-- <button @click="showMsg">调用消息</button> -->
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App',
  provide () {
    return {
      reload: this.reloadFn,
      fn: this.appFn
    }
  },
  data () {
    return {
      bol: true
    }
  },
  methods: {
    reloadFn () {
      this.bol = false
      this.$nextTick(() => {
        this.bol = true
      })
    },
    appFn (str) {
      console.log('appFn', str)
    },
    btnClick () {
      console.log('reload', this.reload)
    },
    showMsg () {
      this.$xtxMessage.error('错误信息测试')
    }
  }
}
</script>
<style lang="scss">
.spinner {
  display: none !important;
}
</style>
